package com.by.utils;

import com.by.ex.BusinessException;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/2/26 15:02
 * @since JDK1.8
 */
public class Assert {

    /**
     * 判断rs的值是否为0
     * @param rs 操作结果 0 失败
     * @param msg 错误消息描述
     */
    public static void isZero(int rs,String msg){
        if (rs==0){
            throw new BusinessException(msg);
        }
    }
}
